package com.Apo1o.controller;

import com.Apo1o.response.Result;
import com.Apo1o.service.DBasicService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Apo1o.
 * @Date: 2023/11/2-11-02-21:40
 * @Description： com.Apo1o.controller
 */
@RequestMapping("diseaseRecord")
@RestController
@RequiredArgsConstructor
public class DiseaseBasicController {
private final DBasicService dBasicService;
    @GetMapping("queryAllDisease")
    public Result findAllDis(){
        return Result.success(dBasicService.findAllDis());
    }

}
